package com.pattern.decorator.person;

import com.pattern.decorator.Decorator;

/**
 * @Description: 服饰,Tshir,Trouser,Tie，Suits，Sneakers,LeatherShoes
 * @Author: whp
 * @Date: 2021-02-07 14:01
 */
public class Finery extends Person {
    Person component;

    /*
     * @Description: 给人着装，装饰
     * @Param: [component]
     * @return void
     **/
    public void decorator(Person component) {
        this.component = component;
    }

    @Override
    public void show() {

        if (component != null) {
            component.show();
        }
    }
}
